package com.css.fxfzypg.modules.auxiliaryDecisionManage.auxiliaryDecision.repository;

import com.css.fxfzypg.modules.auxiliaryDecisionManage.auxiliaryDecision.entity.AuxiliaryDecision;
import com.css.fxfzypg.modules.auxiliaryDecisionManage.auxiliaryDecision.entity.AuxiliaryDecisionReport;
import com.css.fxfzypg.modules.auxiliaryDecisionManage.auxiliaryDecision.param.AuxiliaryDecisionParam;
import com.css.fxfzypg.modules.baseData.entity.DisasterScene;
import com.css.fxfzypg.modules.baseData.entity.ErcmEntity;

import java.math.BigDecimal;
import java.util.ArrayList;
import java.util.Map;

public interface AuxiliaryDecisionRepository {
    String getDataByCataId(String cata_id);

    DisasterScene getDisasterScenario(String province, String city, String prefecture);

    ErcmEntity getEmergencyDisaster(String province, String city, String prefecture);

    void batchSave(ArrayList<AuxiliaryDecision> list);

    Map<String, Object> getPage(int curPage, int pageSize, AuxiliaryDecisionParam param);

    void updateErcmEntityById(AuxiliaryDecision param);

    void updateDisasterSceneById(AuxiliaryDecision param);

    AuxiliaryDecision findById(String id);

    void updateReportIdById(String s, String id);

    void saveAuxiliaryDecisionReport(AuxiliaryDecisionReport report);

    AuxiliaryDecisionReport getReportById(String reportId);

    BigDecimal getDistance(String longitude, String latitude, BigDecimal dhpEpicenterLongitude, BigDecimal dhpEpicenterLatitude);
}
